<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <script type="text/javascript" src="/static/utils/scripts/flat-ui.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="shortcut icon" href="/static/utils/image/favicon.ico" type="image/x-icon"/>
    <meta charset="UTF-8">
    <title>学生信息管理系统</title>

    <!-- 标题图标、CSS、js、jQ 
<link href="/online/image/favicon.ico" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="/online/css/main.css">
<script src="/online/js/fun.js" type="text/javascript"></script>-->
    <script type="text/javascript" src="/static/utils/js/jquery-3.3.1.min.js"></script>
    <!-- Loading Bootstrap -->
    <link href="/static/utils/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI Pro -->
    <link href="/static/utils/css/flat-ui.css" rel="stylesheet">
    <!-- Loading Flat UI JS -->
    <script type="text/javascript" src="/static/utils/scripts/flat-ui.min.js"></script>

    <script type='text/javascript' src='/static/utils/scripts/particles.js'></script>
    <link href="/static/utils/css/animate.css" rel="stylesheet">
</head>

<body>
<div id="particles-js">
    <canvas class="particles-js-canvas-el" width="1322" height="774" style="width: 100%; height: 100%;"></canvas>
</div>

<div>
    <nav class="navbar navbar-inverse navbar-expand-lg" role="navigation">
        <a class="navbar-brand" href="/index?u=student">学生信息管理系统</a>
        <button type="button" class="navbar-toggler" data-toggle="collapse"
                data-target="#navbar-collapse-01"></button>
        <div class="collapse navbar-collapse" id="navbar-collapse-01">
            <ul class="nav navbar-nav mr-auto">
                <li><a href="/selcectCourse"><strong>选课</strong></a>
                <li><a th:href="@{'http://localhost:8080/showCourse/'+ ${sid}}"><strong>查看选课结果</strong></a>

                <li><a th:href="@{'http://localhost:8080/exitCourse/'+ ${sid}}"><strong>退选</strong></a>
                    <!--                    <li><a href="/static/StudentHandler/endcourse/${sessionScope.sid }/1"><strong>查看已修课程</strong></a>-->
                <li><a th:href="@{'http://localhost:8080/mys/'+ ${sid}}"><strong>管理个人信息</strong></a>
            </ul>
            <p class="navbar-text navbar-right" th:text="|你好! ${sname}|"></p>
            <a
                    href="/logout" class="navbar-link" >注销</a>

        </div>
    </nav>
</div>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <h5>确认选课</h5>
            <div class="alert alert-info" role="alert">
                <h5>课程名</h5>
                <p th:text="${course.cname}"></p>

                <h5>代课教师</h5>

                <p th:text="${teacher.tname}"></p>
                <h5>教师所属学院</h5>
                <p th:text="${teacher.college}"></p>
            </div>
        </div>
        <div class="col-md-12">
            <div class="row">
                <div class="col-sm-3" style="margin-top:1rem">
                    <form action="/selected" method="get">


                        <input type="hidden" name="cid" th:value="${cid }"/><input
                            type="submit" class="btn btn-primary btn-wide login-btn" value="确定选课"/>

                    </form>


                </div>
                <div class="col-sm-3" style="margin-top:1rem">
                    <form action="/selcectCourse" method="get">


                        <input type="submit" class="btn btn-primary btn-wide login-btn" value="取消选课"/>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/static/utils/scripts/flat-ui.js"></script>
<script src="/static/utils/scripts/bganimation.js"></script>
</body>

</html>